package com.tencreat.mapper.mall;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tencreat.domain.mall.MallPoster;
import org.apache.ibatis.annotations.Param;

/**
 * 海报配置Mapper接口
 *
 * @author tencreat
 * @date 2022-01-10
 */
public interface MallPosterMapper extends BaseMapper<MallPoster> {

    int insertMallPoster(MallPoster mallPoster);

    Long getUpId(@Param("Order") Long sortOrder);

    Long getDownId(@Param("sortOrder") Long sortOrder);

    void exchange(@Param("id") Long id,@Param("sourceId") Long sourceId);
}
